package org.nanotek.dao.spring.impl;

import java.util.List;

import org.nanotek.beans.ArtistCredit;
import org.nanotek.beans.ReleaseGroup;
import org.nanotek.dao.spring.ReleaseGroupDAO;

@SuppressWarnings({"serial" , "unchecked"})
public class ReleaseGroupDAOImpl extends GeneralPurposeDAO implements
		ReleaseGroupDAO<ReleaseGroup> {

	@Override
	public <A extends ArtistCredit> List<ReleaseGroup> findReleaseGroupByArtistCredit(
			A artistCredit) {
		String jpql = "Select rg from ReleaseGroup where artistCredit = ? ";
		return getHibernateTemplate().find(jpql , artistCredit.getId());
	}

}
